package cn.gene.timeyan.article.webapi.mapper;


import cn.gene.timeyan.pojo.article.model.Share;

import cn.gene.timeyan.pojo.article.vo.ShareVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * 鐢ㄦ埛鍒嗕韩鏂囩珷鐨勮?褰 Mapper 接口
 * </p>
 *
 * @author LWG
 * @since 2022-07-25
 */
@Repository
public interface ShareMapper extends BaseMapper<Share> {
    /**
     * 增加分享记录
     * @param share
     * @return
     */
    int insertShare(Share share);



    //查找shareid
    ShareVO selectShareIdByUserId(Long userId);

    //当为同一个用户时，更改时间，帖子id，平台......
    int updateShareByUserId(Share share);
}
